package com.chenfan.filestore.config;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * api配置
 * @author: Leo
 * Date: 2023/05/08
 * Time: 14:36
 * Version:V1.0
 */
@Data
@Configuration
@RefreshScope
public class FileStoreConfig {

    /**
     * 配置文件临时目录
     */
    @Value("${batch.tempPath:/data/files/}")
    private String tempPath;
    @Value("${file.prefix.path:http://10.228.81.198:8081/chenfan_filestore/file/view}")
    private String filePrefixPath;
    @Value("${batch.image.size:150x150}")
    private String batchImageSize;

    @Value("${batch.image.inteval:30}")
    private Integer batchImageInteval;
}
